#ifndef __SPI_H__
#define __SPI_H__

#ifdef __cplusplus
 extern "C" {
#endif

#define SPI_TypeDef char
#define SPI01 "/dev/spidev0.0"
#define SPI02 "/dev/spidev0.1"
#define assert_param(expr) ((void)0)
#define FunctionalState int
#define DISABLE 0
#define ENABLE 1




extern int fd;


void SPI_Init(SPI_TypeDef* SPIx);
void SPI_read(SPI_TypeDef* SPIx, char *buf, size_t count);
void SPI_write(SPI_TypeDef* SPIx, char *buf, size_t count);


#ifdef __cplusplus
}
#endif

#endif /* __SPI_H__ */
